package itheima.d08;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;

public class Test {
    public static void main(String[] args) {
        ZoneId zid=ZoneId.systemDefault();
        System.out.println(zid);


        System.out.println(ZoneId.getAvailableZoneIds());

        //获取日本时间
        ZoneId zid2=ZoneId.of("Japan");

        ZonedDateTime zdt=ZonedDateTime.now(zid2);
        System.out.println("中国时间："+ LocalDateTime.now());
        System.out.println("日本时间："+zdt);
    }
}
